package priv.tuyou.enumer;

/**
 * 是否审核
 * @author tuyou
 *
 */
public enum AuditFlag {

	init("未审核"),
	
	yes("审核通过"),

	no("审核不通过"); 
	
	
	/**
	 * 枚举字段的文字描述
	 */
	private String text;
	
	private AuditFlag(String text){
		
		this.text = text;
	}

	public String getValue() {
		return this.toString();
	}
	
	public String getText(){
		return text;
	}
	
	public static void main(String[] args) {
		
		System.out.println(AuditFlag.no.ordinal());
		System.out.println(AuditFlag.yes.ordinal());
	}
}
